/* Confirmation Modal Styles */
/* Overlay container for confirmation modal */
.confirmation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Active state shows overlay */
.confirmation-modal-overlay.active {
    opacity: 1;
}

/* Confirmation Modal Styles */
/* Modal content container */
.confirmation-modal {
    background: linear-gradient(135deg, #2c1810, #1a0f0a);
    border-radius: 12px;
    padding: 18px 20px 20px 20px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

/* Reveal animation for modal when overlay active */
.confirmation-modal-overlay.active .confirmation-modal {
    transform: translateY(0);
}

/* Modal header bar and title area */
.confirmation-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, #2c1810, #1a0f0a);
    color: #ffffff;
    border-radius: 12px 12px 0 0;
    margin-bottom: 12px; /* add spacing between header and content */
}

.confirmation-modal-header h3 {
    color: white;
    font-size: 18px;
    font-weight: normal;
    margin: 0;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
}

/* Modal close button */
.close-confirmation {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}
.close-confirmation:hover {
    background-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%) rotate(90deg);
}

/* Content section heading */
.confirmation-modal-content h4 {
    color: white;
    font-size: 20px;
    font-weight: normal;
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

/* Body text inside modal */
.confirmation-modal-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* Timestamp footer in modal */
.confirmation-modal-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Confirmation Page Styles */
/* Confirmation page content wrapper */
.confirmation-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2.5rem 2rem 3rem;
}

/* Page title style */
.confirmation-page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    margin-bottom: 1rem;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* Card-like container for details */
.confirmation-container {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 2.25rem;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}

/* Grid layout for message sections */
.confirmation-message {
    display: grid;
    gap: 1.25rem;
}

/* Primary thank-you text */
.thank-you-message {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    text-align: center;
    letter-spacing: 0.02em;
}

/* Details text under thank-you */
.confirmation-details {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
    letter-spacing: 0.02em;
}

/* Secondary notification text */
.notification-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    text-align: center;
    letter-spacing: 0.02em;
}

.form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Scoped order details styles to match modal visuals */
.confirmation-modal .order-detail-section {
    margin-bottom: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.confirmation-modal .detail-row {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.confirmation-modal .detail-row:last-child {
    border-bottom: none;
}
.confirmation-modal .detail-label {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    min-width: 120px;
}
.confirmation-modal .detail-row span:last-child {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
}

/* Unified primary style for modal actions */
.confirmation-modal .modal-actions .admin-btn {
    background: linear-gradient(135deg, #540000, #8B0000);
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.confirmation-modal .modal-actions .admin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 0, 0, 0.35);
    filter: brightness(1.05);
}

/* OK button style to match nav/pill aesthetic */
.confirmation-modal .modal-actions .admin-btn.ok-nav {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 12px 24px; /* consistent padding */
    min-width: 120px; /* consistent min width */
    height: 40px; /* consistent height silhouette */
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}
.confirmation-modal .modal-actions .admin-btn.ok-nav:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.18);
}

@media (max-width: 768px) {
    .confirmation-page-title {
        font-size: 2.25rem;
        letter-spacing: 0.22em;
    }
    .confirmation-container {
        padding: 1.5rem;
    }
    .thank-you-message {
        font-size: 1rem;
    }
    .confirmation-details,
    .notification-text {
        font-size: 0.95rem;
    }
}